var form;
var laydate;
layui.use(['form','laydate'],function(){
    form = layui.form;
    laydate = layui.laydate;

    //创建时间
    laydate.render({
        elem: '#createDate',
        type: 'datetime',
        trigger:'click',
        done:function (value,date) {
            $("#getDate").val(value);
        }
    });


});

//确定查询
function sel() {
    var accId=$("#accId").val();
    var createDate=$("#createDate").val();
    var articleLike=$("#articleLike").val();
    var collectionNum=$("#collectionNum").val()
    var articleHits=$("#articleHits").val();
    var articleShare=$("#articleShare").val();

    parent.$("#accId").val(accId);
    parent.$("#createDate").val(createDate);
    parent.$("#articleLike").val(articleLike);
    parent.$("#collectionNum").val(collectionNum);
    parent.$("#articleHits").val(articleHits);
    parent.$("#articleShare").val(articleShare);


    parent.$('#btn_2').click();

    //点击检索之后清空父子的输入框
    $("input").val("");
    $(this).find("option:selected").removeAttr("selected")
    parent.$("input[name!='userId']").val('');
    parent.$(this).find("option:selected").removeAttr("selected");

    var layer_1=parent.layer_1;
    layer_1.close(layer_1.index);
};


//重置
function Reset(){
    $("input").val("");
    $(this).find("option:selected").removeAttr("selected");
}